#ifndef PAGESOURCE_H
#define PAGESOURCE_H

#include <QWidget>
#include "widgetBase.h"
#include "widgetHarmonic.h"
#include "serialconnection.h"

class pageSource : public QWidget
{
    Q_OBJECT
public:
    explicit pageSource(QWidget *parent = 0);
    ~pageSource();

    bool sourceIsActive;

    widgetBasewave *widgetB;
    widgetHarmonic *widgetH;

    QStackedWidget *widgetMain;

    QPushButton *btnB;
    QPushButton *btnH;
    QCheckBox *enableInternalSrc;

    serialConnection *linkToHardware;

    void sendData(QByteArray);

    void startSrc();
    void stopSrc();
    void feedback(QByteArray cmd);

signals:

public slots:
    void toggleStackedWidget();
    void sendCmd2Src();
    void readData();

};

#endif // PAGESOURCE_H
